<?php
    #-------------------------------------------------------------#
	# This file is part of the Kumomado - Virtual Window Platform #
	# for PHP. (c) 2009 Tsai, Min Che <tirme0812@gmail.com>       #
	# Please visit http://www.kumomado.org/ for more information. #
	#                                                             #
	# This software is licensed under the GNU License v3. Please  #
	# view the LICENSE file for the full text of this license.    #
    #-------------------------------------------------------------#

	Kumomado::load('Kui.Components.Base.KumomadoUIBase');
	/**
	 * @package libraries/kui/components/base/
	 * @author Tsai, Min Che
	 * @version 1.0
	 */
	class KumomadoSelect extends KumomadoUIBase {
		protected $ui_name;
		protected $value;
		public function __construct($id, $value) {
			$this->setId($id);
			$this->setValue($value);
		}
		public function setValue($value) {
			$this->value = $value;
		}
		public function getAttrs() {
			return array();
		}
		public function view() {
			//$view = '<input type="radio" id="'.$this->getId().'" value="'.$this->getValue().'" />';
			return $view;
		}
		public function render() {
			return array(
				'ui_name' => $this->ui_name,
				'attrs' => $this->getAttrs(),
				'view' => $this->view()
			);
		}
	}
?>